package com.dh.project.service.impl;

import com.baomidou.framework.service.impl.SuperServiceImpl;
import com.dh.project.mapper.CouponMapper;
import com.dh.project.model.Coupon;
import com.dh.project.model.PageModel;
import com.dh.project.service.CouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by admin on 2017/4/13.
 */
@Service
public class CouponServiceImpl extends SuperServiceImpl<CouponMapper,Coupon> implements CouponService {

    @Autowired
    private CouponMapper couponMapper;

    @Override
    public List<Coupon> selectCouponListByMap(Map map) {
        return couponMapper.selectCouponListByMap(map);
    }

    @Override
    public PageModel selectCouponListByMapCount(Map map) {
        return couponMapper.selectCouponListByMapCount(map);
    }
}
